#include "TextureCache.h"

void TextureCache::AddTexture(const std::string& path, com_ptr<TexturType> tex)
{
	m_Cache.insert(std::make_pair(path, tex));
}

TextureCache::TexturType* TextureCache::GetTexture(const std::string& path) const
{
	auto it = m_Cache.find(path);

	if(it != m_Cache.end())
	{
		return it->second;
	} 
	else
		return nullptr;
}